var page = sm("do_Page");
var nf = sm("do_Notification");
var root = ui("$");
var imgCheckBox = ui("imgCheckBox");
var iconCheck = ["source://image/common/checkbox.png","source://image/common/checkboxcheck.png"]

root.setMapping({
	"imgfullLogo.tag":"friendId",
	"imgfullLogo.source":"fullFriendLogo",
	"lableNick.text":"friendName"
});

ui("checkSelect").on("checkChanged", function(isCheck) {
	var friend = {};
	friend.checked = isCheck;
	isCheck ? imgCheckBox.source=iconCheck[1] : imgCheckBox.source=iconCheck[0];
	friend.friendId = ui("imgfullLogo").tag;//好友friendId
	page.fire("friend_check_change_event", friend);
})